<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div  id="content">
            <section class="content-header">
                <h1>
                    <i class="fa fa-deviantart"></i>
                    <strong>客户来访管理</strong>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
                    <li>客户管理</li>
                    <li class="active">客户来访管理</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="box box-info">
                            <div class="box-header with-border">
                                <i class="fa fa-th-list"></i>
                                <h4 class="box-title">客户来访查询</h4>
                            </div>
                            <div class="box-body">
                                <div class="form-inline">
                                	<div class="input-group">
										<input type="text" class="form-control" id="keyword"  placeholder="Search..." />
										<span class="input-group-btn">
											<button th:if="${module.canRead==true}" type="button" id="search-btn" class="btn btn-info searchBtn">查询</button>
                                            <button th:if="${module.canRead==true}" type="button" id="reset-btn" class="btn btn-info resetBtn">撤消</button>
										</span>
									</div>
						    		<button th:if="${module.canRead==true}" type="button" class="btn btn-info pull-right seeBtn" >查看</button>
                                    <button th:if="${module.canDelete==true}" type="button" class="btn btn-info pull-right delBtn" >删除</button>
                                    <button th:if="${module.canModify==true}" type="button" class="btn btn-info pull-right editBtn">编辑</button>
                                    <button th:if="${module.canAdd==true}" type="button" class="btn btn-info pull-right addBtn" >添加</button>
								</div>
                            </div>
                            <div class="box box-body" style="width:100%; overflow-x:scroll;">
                                <table id="visitTable" class="mytable dataTable table-bordered text-center table-striped table-hover display"  cellspacing="0" width="1600px">
                                    <thead>
                                        <tr>
                                            <th width="4%">序号</th>
                                            <th width="1%"><input type="checkbox" id="checkAll"/></th>
                							<th width="9%">客户编号</th>
                							<th width="11%">单位名称</th>
                							<th width="5%">来访时间</th>
               								<th width="10%">项目名称及产品</th>
                							<th width="8%">预计合同量(元)</th>
                							<th width="7%">项目进展阶段</th>
                							<th width="6%">信用评分</th>
                							<th width="5%">经办人</th>
                							<th width="5%">证明人</th>
                							<th width="7%">片区</th>
                							<th width="11%">备注</th>
                                        </tr>
                                    </thead>
                                    <tbody> 
                                    
               						</tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <!--用户来访信息添加弹窗-->
    <!-- <div class="modal" id="customerVisitingModal">
        <div class="modal-dialog" role="dialog">
            <form id="customerVisitingForm">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><strong>客户来访信息录入</strong></h4>
                    </div>
                    <div class="modal-body">
                        <input type="hidden" name="id" id="id" />
                        <div class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">客户序号</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control"  type="text" name="state"  id="state"  datatype="*,*1-100"  nullmsg="请输入状态" />
                                    </div>
                                    <div class="col-md-1">
                                        <span style="color:#F00;fontsize:30px">*</span>
                                    </div>
                                </div>
                                <label class="col-sm-2 control-label">单位名称</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="receiver" id="receiver" datatype="*1-100" nullmsg="请输入联络员" />
                                    </div>
                                    <div class="col-md-1">
                                        <span style="color:#F00;fontsize:30px">*</span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                            <label class="col-sm-2 control-label">项目名称及产品</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                      <input class="form-control" type="text" id="recording" name="recording" datatype="*" nullmsg="请输入来访事宜"/>
                                    </div>
                                    <div class="col-md-1">
                                        <span style="color:#F00;fontsize:30px">*</span>
                                    </div>
                                </div>
                                <label class="col-sm-2 control-label">预计合同量</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="visitingDate" id="visitingDate" datatype="*1-100" />
                                    </div>
                                    <div class="col-md-1">
                                        <span style="color:#F00;fontsize:30px">*</span>
                                    </div>
                                </div>
                                </div>
                                <div class="form-group">
                                 <label class="col-sm-2 control-label">项目进展阶段</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="1" id="1" />
                                    </div>
                                </div>
                                <label class="col-sm-2 control-label">信用评分</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="dd" id="dd" />
                                    </div>
                                </div>
                                </div>
                                <div class="form-group">
                                 <label class="col-sm-2 control-label">经办人</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="memo" id="memo" />
                                    </div>
                                </div>
                                <label class="col-sm-2 control-label">证明人</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="memo" id="memo" />
                                    </div>
                                </div>
                                </div>
                                <div class="form-group">
                                 <label class="col-sm-2 control-label">片区</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="memo" id="memo"/>
                                    </div>
                                </div>
                                <label class="col-sm-2 control-label">备注来源</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="memo" id="memo" />
                                    </div>
                                </div>
                                </div> 
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                        <button type="button" class="btn btn-primary saveBtn" >保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div> -->
  
   <!--来访信息弹窗-->
  
    <!-- <div class="modal" id="customerInfoModal">
        <div class="modal-dialog" role="dialog">
            <form id="quoteForm">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><strong>来访信息</strong></h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-horizontal">
                	<div class="widget-content nopadding">
                	<h5 class="modal-title"><strong>来访人员</strong></h5>
								<table class="table table-bordered table-condensed data-table mytable" id="resultTable">
						          <thead>
									<tr>
										<th class="center">对象</th>
										<th class="center">部门</th>
										<th class="center">职务</th>
										<th class="center">联系方式</th>
										<th class="center">总人数</th>
									</tr>
								  </thead>
								  <tbody>
								    <tr class="gradeA">
								    <td class="center">张三</td>
								    <td>销售部</td>
								    <td>销售员</td>
								    <td>1234566</td>
								    <td>34</td>
								    </tr>
								    	
								    <tr class="gradeA">
								    <td class="center">ddd</td>
								    <td>销售部</td>
								    <td>销售员</td>
								    <td>123456634</td>
								    <td>44</td>
								    </tr>
								  </tbody>
						        </table>
							  </div>
							  
							  	<div class="widget-content nopadding">
                	<h5 class="modal-title"><strong>来访消费</strong></h5>
								<table class="table table-bordered table-condensed data-table mytable" id="resultTable">
						          <thead>
									<tr>
										<th class="center">序号</th>
										<th class="center">费用名目</th>
										<th class="center">单价</th>
										<th class="center">数量</th>
										<th class="center">总费用</th>
									</tr>
								  </thead>
								  <tbody>
								    <tr class="gradeA">
								    <td class="center">1</td>
								    <td>交通</td>
								    <td>34</td>
								    <td>14</td>
								    <td>3454</td>
								    </tr>
								    	
								    <tr class="gradeA">
								    <td class="center">2</td>
								    <td>dff</td>
								    <td>77</td>
								    <td>56</td>
								    <td>6788</td>
								    </tr>
								  </tbody>
						        </table>
							  </div>
          
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                    </div>
                    </div>
                    </div>
                   </div>
            </form>
        </div>
    </div> -->
    <script th:src="@{/customerVisiting/customerVisitingIndex.js}"></script>
    </div>
</body>
</html>